package com.example.j2eetest.config;

import io.swagger.v3.oas.models.ExternalDocumentation;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SwaggerConfig {
    @Bean
    public OpenAPI SwaggerOpenApi() {
        return new OpenAPI()
                .info(new Info().title("AAAAA")
                        .description("学习通")
                        .version("V6.6.6.6"))
                .externalDocs(new ExternalDocumentation()
                        .description("百度一下吧")
                        .url("https://baidu.com"));
    }
}
